<?php
if(!class_exists('XAbstractLocaleHolder', false)){
	require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'XAbstractLocaleHolder.php');
}
class XUrlLocaleHolder extends XAbstractLocaleHolder{
	protected function load(){
		$this->locale = XServletRequest::singleton()->post('locale');
		if(is_null($this->locale)){
			$this->locale = XServletRequest::singleton()->get('locale');
		}
	}
	//TODO register a event to add url param
	protected function setup($locale){
		
	}
}
?>